package com.woniu.userservice.service;


import com.woniu.userservice.entity.Account;
import com.woniu.userservice.entity.ResultBody;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AccountService {

    Account queryById(Integer id);

    List<Account> queryAllByLimit(int offset, int limit);
    
    List<Account> findAll();
    Account insert(Account account);

    Account update(Account account);

    boolean deleteById(Integer id);
/**
*@Author:huangjing
*@Description:
*@Date: 10:34 2020/3/24
*/

    List queryCountByTime();

    ResultBody login(String account, String pass);

    ResultBody register(String userName, String account, String pass);
}